﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000703 RID: 1795
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetGachaCeilingScRsp : IMessage<GetGachaCeilingScRsp>, IMessage, IEquatable<GetGachaCeilingScRsp>, IDeepCloneable<GetGachaCeilingScRsp>, IBufferMessage
	{
		// Token: 0x17001707 RID: 5895
		// (get) Token: 0x060050CE RID: 20686 RVA: 0x000DBBFF File Offset: 0x000D9DFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetGachaCeilingScRsp> Parser
		{
			get
			{
				return GetGachaCeilingScRsp._parser;
			}
		}

		// Token: 0x17001708 RID: 5896
		// (get) Token: 0x060050CF RID: 20687 RVA: 0x000DBC06 File Offset: 0x000D9E06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetGachaCeilingScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001709 RID: 5897
		// (get) Token: 0x060050D0 RID: 20688 RVA: 0x000DBC18 File Offset: 0x000D9E18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetGachaCeilingScRsp.Descriptor;
			}
		}

		// Token: 0x060050D1 RID: 20689 RVA: 0x000DBC1F File Offset: 0x000D9E1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetGachaCeilingScRsp()
		{
		}

		// Token: 0x060050D2 RID: 20690 RVA: 0x000DBC28 File Offset: 0x000D9E28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetGachaCeilingScRsp(GetGachaCeilingScRsp other) : this()
		{
			this.gachaType_ = other.gachaType_;
			this.retcode_ = other.retcode_;
			this.gachaCeiling_ = ((other.gachaCeiling_ != null) ? other.gachaCeiling_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060050D3 RID: 20691 RVA: 0x000DBC80 File Offset: 0x000D9E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetGachaCeilingScRsp Clone()
		{
			return new GetGachaCeilingScRsp(this);
		}

		// Token: 0x1700170A RID: 5898
		// (get) Token: 0x060050D4 RID: 20692 RVA: 0x000DBC88 File Offset: 0x000D9E88
		// (set) Token: 0x060050D5 RID: 20693 RVA: 0x000DBC90 File Offset: 0x000D9E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GachaType
		{
			get
			{
				return this.gachaType_;
			}
			set
			{
				this.gachaType_ = value;
			}
		}

		// Token: 0x1700170B RID: 5899
		// (get) Token: 0x060050D6 RID: 20694 RVA: 0x000DBC99 File Offset: 0x000D9E99
		// (set) Token: 0x060050D7 RID: 20695 RVA: 0x000DBCA1 File Offset: 0x000D9EA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700170C RID: 5900
		// (get) Token: 0x060050D8 RID: 20696 RVA: 0x000DBCAA File Offset: 0x000D9EAA
		// (set) Token: 0x060050D9 RID: 20697 RVA: 0x000DBCB2 File Offset: 0x000D9EB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeiling GachaCeiling
		{
			get
			{
				return this.gachaCeiling_;
			}
			set
			{
				this.gachaCeiling_ = value;
			}
		}

		// Token: 0x060050DA RID: 20698 RVA: 0x000DBCBB File Offset: 0x000D9EBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetGachaCeilingScRsp);
		}

		// Token: 0x060050DB RID: 20699 RVA: 0x000DBCCC File Offset: 0x000D9ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetGachaCeilingScRsp other)
		{
			return other != null && (other == this || (this.GachaType == other.GachaType && this.Retcode == other.Retcode && object.Equals(this.GachaCeiling, other.GachaCeiling) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060050DC RID: 20700 RVA: 0x000DBD2C File Offset: 0x000D9F2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GachaType != 0U)
			{
				num ^= this.GachaType.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.gachaCeiling_ != null)
			{
				num ^= this.GachaCeiling.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060050DD RID: 20701 RVA: 0x000DBD9A File Offset: 0x000D9F9A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060050DE RID: 20702 RVA: 0x000DBDA2 File Offset: 0x000D9FA2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060050DF RID: 20703 RVA: 0x000DBDAC File Offset: 0x000D9FAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GachaType != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.GachaType);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this.gachaCeiling_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.GachaCeiling);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060050E0 RID: 20704 RVA: 0x000DBE20 File Offset: 0x000DA020
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GachaType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GachaType);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.gachaCeiling_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GachaCeiling);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060050E1 RID: 20705 RVA: 0x000DBE90 File Offset: 0x000DA090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetGachaCeilingScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GachaType != 0U)
			{
				this.GachaType = other.GachaType;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.gachaCeiling_ != null)
			{
				if (this.gachaCeiling_ == null)
				{
					this.GachaCeiling = new GachaCeiling();
				}
				this.GachaCeiling.MergeFrom(other.GachaCeiling);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060050E2 RID: 20706 RVA: 0x000DBF0C File Offset: 0x000DA10C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060050E3 RID: 20707 RVA: 0x000DBF18 File Offset: 0x000DA118
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 64U)
					{
						if (num != 90U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.gachaCeiling_ == null)
							{
								this.GachaCeiling = new GachaCeiling();
							}
							input.ReadMessage(this.GachaCeiling);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.GachaType = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001FBC RID: 8124
		private static readonly MessageParser<GetGachaCeilingScRsp> _parser = new MessageParser<GetGachaCeilingScRsp>(() => new GetGachaCeilingScRsp());

		// Token: 0x04001FBD RID: 8125
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001FBE RID: 8126
		public const int GachaTypeFieldNumber = 1;

		// Token: 0x04001FBF RID: 8127
		private uint gachaType_;

		// Token: 0x04001FC0 RID: 8128
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04001FC1 RID: 8129
		private uint retcode_;

		// Token: 0x04001FC2 RID: 8130
		public const int GachaCeilingFieldNumber = 11;

		// Token: 0x04001FC3 RID: 8131
		private GachaCeiling gachaCeiling_;
	}
}
